#include <iostream>
#include <cstdlib>
class Test
{
public:
    Test()
    {
        std::cout << "无参构造函数！" << std::endl;
    }
    ~Test()
    {
        std::cout << "析构函数！" << std::endl;
    }
};

int main()
{
    // Test *t = new Test;
    // delete t;
    // Test *t = (Test *)malloc(sizeof(Test));
    // free(t);

    Test *t = new Test[3];
    delete[] t;

    return 0;
}